<div class="photo-album">
    <div class="albums">
        {|foreach from=$photoAlbumArray item=e|}
            <a href="{|$e.url|}">
                <div class="items">
                    <img src="{|$e.image|}" alt="{|$e.name|}" title="{|$e.name|}" />
                        <div class="title">
                            <a href="{|$e.url|}">{|$e.name|}</a>
                            <span class="count">
                                {|if $e.count|}
                                    ({|$e.count|})
                                {|else|}
                                    (0)
                                {|/if|}
                            </span>
                        </div>
                </div>
            </a>
        {|/foreach|}
    </div>
</div>
<div class="clear">&nbsp;</div>